package com.sanda.bailin.mapper;

import com.sanda.bailin.pojo.UserInfo;
import org.apache.ibatis.annotations.Mapper;
//import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface HelloMapper {
    @Select("select * from user limit #{limit} OFFSET #{offset}")
    List<UserInfo>getName(Integer limit,Integer offset);

    @Select("select count(1) from user")
    Integer getCount();
}
